Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide reasonable fallback for event target when mouse position exits viewport #19

Conversation

aaronlademann-wf
Copy link
Contributor

Currently, when the "container" that holds the draggables sits flush against the edge of the viewport, and the user moves their mouse cursor outside the bounds of the visible viewport while dragging, an unhandled exception is thrown (see screen capture below).

dart-dnd-scrolling-list-exception

These changes make it so that a valid EventTarget is provided at all times within _getRealTarget.

For your approval @marcojakob


cc/ @greglittlefield-wf @clairesarsam-wf @jacehensley-wf @joelleibow-wf

+ Prevents unhandled exception “Not a valid Node” when the container that holds the draggables sits flush against the edge of the viewport, and the user moves their mouse cursor outside the bounds of the visible viewport while dragging.
@marcojakob
Copy link
Owner

Thank you @aaronlademann-wf for this fix. I will merge it and release a new version on pub.

@marcojakob marcojakob merged commit 917ab04 into marcojakob:master Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants